package win.bigwhale.library.db.bean;

import java.sql.Date;

public class User {
	private int id;
	private String first_name;
	private String last_name;
	private String gender;
	private int age;
	private Date birth;
	private String role;

	public User() {}

	public User(int id, String firstName, String lastName, String gender, int age, Date birth, String role) {
		this.id = id;
		this.first_name = firstName;
		this.last_name = lastName;
		this.gender = gender;
		this.age = age;
		this.birth = birth;
		this.role = role;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("Id: ").append(id + "\n");
		sb.append("Name: ").append(first_name + " " + last_name + "\n");
		sb.append("Gender: ").append(gender + "\n");
		sb.append("Age: ").append(age + "\n");
		sb.append("Birth: ").append(birth + "\n");
		sb.append("Position: ").append(role + "\n");
		return sb.toString();
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFirstName() {
		return first_name;
	}

	public void setFirstName(String firstName) {
		this.first_name = firstName;
	}

	public String getLastName() {
		return last_name;
	}

	public void setLastName(String lastName) {
		this.last_name = lastName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

}
